//
//  BsCollectionViewCell.m
//  Demo
//
//  Created by colawh on 2019/3/16.
//  Copyright © 2019年 colawhdfws. All rights reserved.
//

#import "BsGrayBorderCollectionViewCell.h"
#import "LMSNewBorderLabel.h"
#import <Masonry/Masonry.h>

@implementation BsGrayBorderCollectionViewCell

- (instancetype)initWithFrame:(CGRect)frame{
    if ([super initWithFrame:frame]) {
        [self configUI];
    }
    return self;
}

- (void)configUI{
    [self.contentView addSubview:self.textLb];
    [_textLb mas_makeConstraints:^(MASConstraintMaker *make) {
        make.edges.equalTo(self.contentView);
    }];
}

- (UILabel *)textLb{
    if (!_textLb) {
        _textLb = [[UILabel alloc] init];
        _textLb.font = [UIFont systemFontOfSize:14];
        _textLb.textAlignment = NSTextAlignmentCenter;
        _textLb.textColor = [UIColor blueColor];
//        _textLb.backgroundColor =  [UIColor colorWithPatternImage:[UIImage imageNamed:@"ExamListBtnState.png"]];
        _textLb.layer.masksToBounds = YES;
        _textLb.layer.borderColor =[UIColor redColor].CGColor;//边框颜色
        _textLb.layer.borderWidth = 1;
        //改成弧度自适应有问题暂时先做成圈圈的
    }
    return _textLb;
}

@end
